<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
	xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
	xmlns:s="clr-namespace:System;assembly=mscorlib"
	xmlns:mwt="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
	xmlns:sw="clr-namespace:System.Windows;assembly=PresentationFramework"
	xmlns:Themes="clr-namespace:ITSparta.WPF.Themes;assembly=ITSparta.WPF"
	xmlns:ITSControls="clr-namespace:ITSparta.WPF.Controls;assembly=ITSparta.WPF">

	<ResourceDictionary.MergedDictionaries>
		<ResourceDictionary Source="/SPConfigDBReaderApp;component/Themes/Converters.xaml"/>
	</ResourceDictionary.MergedDictionaries>

	<!--Стили общего названачения-->
	<Color x:Key="DisabledForegroundColor">#a2a4a5</Color>
	<SolidColorBrush x:Key="ForegroundBrush" Color="#1e1e1e" />
	<SolidColorBrush x:Key="DisabledForegroundBrush" Color="{StaticResource DisabledForegroundColor}" />
	<SolidColorBrush x:Key="DisabledBackgroundBrush" Color="#d5dce8" />
	<SolidColorBrush x:Key="HeaderBackgroundBrush" Color="#77787a" />
	<SolidColorBrush x:Key="HeaderForegroundBrush" Color="#ffffff" />

	<SolidColorBrush x:Key="BrushMouseOverMenuItem" Color="#f8f9fa" />
	<SolidColorBrush x:Key="BrushBackgroundMenuPopup" Color="#e7e8ec" />
	<SolidColorBrush x:Key="BorderBrushMouseOverMenuItem" Color="#e5c365" />
	<SolidColorBrush x:Key="BorderBrushShowSubitemsMenuItem" Color="#cccedb" />
	<SolidColorBrush x:Key="BrushBackgroundSeparatorMenuItem" Color="#cccedb" />

	<Themes:MetroColors x:Key="MetroColors" />

	<Color x:Key="OrangeColor" A="255" R="202" G="81" B="0" />
	<Color x:Key="LightAccentColor" A="255" R="51" G="153" B="255" />
	<Color x:Key="LightBasicColor" A="255" R="235" G="232" B="232" />

	<SolidColorBrush x:Key="AccentBrush" Color="{Binding Source={StaticResource MetroColors}, Path=Palette.AccentColor}" />
	<SolidColorBrush x:Key="LightAccentBrush" Color="{StaticResource LightAccentColor}" />
	<SolidColorBrush x:Key="BasicBrush" Color="{Binding Source={StaticResource MetroColors}, Path=Palette.BasicColor}" />
	<SolidColorBrush x:Key="LightBasicBrush" Color="{StaticResource LightBasicColor}" />
	<SolidColorBrush x:Key="StrongBrush" Color="{Binding Source={StaticResource MetroColors}, Path=Palette.StrongColor}" />
	<SolidColorBrush x:Key="MainBrush" Color="{Binding Source={StaticResource MetroColors}, Path=Palette.MainColor}" />
	<SolidColorBrush x:Key="MarkerBrush" Color="{Binding Source={StaticResource MetroColors}, Path=Palette.MarkerColor}" />
	<SolidColorBrush x:Key="ValidationBrush" Color="{Binding Source={StaticResource MetroColors}, Path=Palette.ValidationColor}" />
	<SolidColorBrush x:Key="OrangeBrush" Color="{StaticResource OrangeColor}" />
	<SolidColorBrush x:Key="PaneBrush" Color="Transparent" />

	<SolidColorBrush x:Key="CalendarDayOfBrush" Color="{StaticResource LightBasicColor}" />

	<!--Стили списка ListView1-->
	<Style x:Key="ListViewMetro" TargetType="{x:Type ListView}">
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush" Value="{StaticResource BasicBrush}" />
		<Setter Property="Padding" Value="7,7,7,2" />
		<Setter Property="Background" Value="{StaticResource MainBrush}" />
		<Setter Property="ItemContainerStyle" Value="{DynamicResource ListViewItemMetro}" />
		<Setter Property="OverridesDefaultStyle" Value="True" />
		<Setter Property="FontSize" Value="{Binding Source={x:Static Themes:StyleManager.FontSize}}"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ListView}">
					<Border Name="Border" BorderThickness="{TemplateBinding BorderThickness}"
							BorderBrush="{TemplateBinding BorderBrush}" Margin="{TemplateBinding Margin}"
							Background="{TemplateBinding Background}">
						<ScrollViewer Padding="{TemplateBinding Padding}" CanContentScroll="True"
									  VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"
									  Background="Transparent">
							<Grid>
								<VirtualizingStackPanel IsItemsHost="True" Orientation="Vertical" />
							</Grid>
						</ScrollViewer>
					</Border>
					<!--<ControlTemplate.Triggers>
						<Trigger Property="IsKeyboardFocused" Value="True">
							<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource StrongBrush}"/>
						</Trigger>
						<Trigger Property="IsKeyboardFocusWithin" Value="True">
							<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource StrongBrush}"/>
						</Trigger>
						<Trigger Property="IsMouseCaptured" Value="True">
							<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource StrongBrush}"/>
						</Trigger>
						<Trigger Property="IsMouseCaptureWithin" Value="True">
							<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource StrongBrush}"/>
						</Trigger>
					</ControlTemplate.Triggers>-->
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="ListViewNoBordersMetro" TargetType="{x:Type ListView}" BasedOn="{StaticResource ListViewMetro}">
		<Setter Property="ItemContainerStyle" Value="{DynamicResource ListViewItemNoBordersMetro}" />
		<Setter Property="Padding" Value="7,7,7,7" />
	</Style>

	<Style x:Key="ListViewAccentMetro" TargetType="{x:Type ListView}" BasedOn="{StaticResource ListViewNoBordersMetro}">
		<Setter Property="ItemContainerStyle" Value="{DynamicResource ListViewItemAccentMetro}" />
		<Setter Property="Padding" Value="7,7,7,7" />
	</Style>

	<Style x:Key="ListViewItemMetro" TargetType="{x:Type ListViewItem}">
		<Setter Property="Padding" Value="10,5,10,5" />
		<Setter Property="Margin" Value="0" />
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="BorderThickness" Value="0" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="OverridesDefaultStyle" Value="True" />
		<Setter Property="FontSize" Value="{Binding Source={x:Static Themes:StyleManager.FontSize}}"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ListViewItem}">
					<Border Name="Border" BorderThickness="{TemplateBinding BorderThickness}"
							BorderBrush="{TemplateBinding BorderBrush}"
							Padding="{TemplateBinding Padding}" CornerRadius="0"
							Background="{TemplateBinding Background}">
						<ContentPresenter />
					</Border>
					<ControlTemplate.Triggers>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsMouseOver" Value="true" />
								<Condition Property="IsSelected" Value="false" />
							</MultiTrigger.Conditions>
							<Setter Property="Background" Value="{StaticResource BasicBrush}" />
						</MultiTrigger>
						<Trigger Property="IsSelected" Value="true">
							<Setter Property="Background" Value="{StaticResource BasicBrush}" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="ListViewItemNoBordersMetro" TargetType="{x:Type ListViewItem}" BasedOn="{StaticResource ListViewItemMetro}">
	</Style>

	<Style x:Key="ListViewItemAccentMetro" TargetType="{x:Type ListViewItem}" BasedOn="{StaticResource ListViewItemNoBordersMetro}">
		<Setter Property="Margin" Value="0" />
		<Setter Property="BorderBrush" Value="{StaticResource MainBrush}" />
		<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ListViewItem}">
					<Border Name="Border" BorderThickness="{TemplateBinding BorderThickness}"
							BorderBrush="{TemplateBinding BorderBrush}"
							Padding="{TemplateBinding Padding}" CornerRadius="0"
							Background="{TemplateBinding Background}">
						<ContentPresenter />
					</Border>
					<ControlTemplate.Triggers>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsMouseOver" Value="true" />
								<Condition Property="IsSelected" Value="false" />
							</MultiTrigger.Conditions>
							<Setter Property="BorderBrush" Value="{StaticResource BasicBrush}" />
							<Setter Property="Background" Value="{StaticResource BasicBrush}" />
						</MultiTrigger>
						<Trigger Property="IsSelected" Value="true">
							<Setter Property="BorderBrush" Value="{StaticResource BasicBrush}" />
							<Setter Property="Background" Value="{StaticResource BasicBrush}" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<!--/Стили списка ListView1-->

	<!--Стили списка ListBox-->
	<Style x:Key="ListBoxMetro" TargetType="{x:Type ListBox}">
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush" Value="{StaticResource BasicBrush}" />
		<Setter Property="Padding" Value="2,2,2,2" />
		<Setter Property="Background" Value="{StaticResource MainBrush}" />
		<Setter Property="ItemContainerStyle" Value="{DynamicResource ListBoxItemMetro}" />
		<Setter Property="OverridesDefaultStyle" Value="True" />
		<Setter Property="FontSize" Value="{Binding Source={x:Static Themes:StyleManager.FontSize}}"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ListBox}">
					<Border Name="Border" BorderThickness="{TemplateBinding BorderThickness}"
							BorderBrush="{TemplateBinding BorderBrush}" Margin="{TemplateBinding Margin}"
							Background="{TemplateBinding Background}">
						<ScrollViewer Padding="{TemplateBinding Padding}" CanContentScroll="True"
									  VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
							<Grid>
								<StackPanel IsItemsHost="True" Orientation="Vertical">
								</StackPanel>
							</Grid>
						</ScrollViewer>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="ListBoxItemMetro" TargetType="{x:Type ListBoxItem}">
		<Setter Property="OverridesDefaultStyle" Value="True" />
		<Setter Property="FontSize" Value="11"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ListBoxItem}">
					<Border Name="Border" BorderThickness="1" BorderBrush="{StaticResource BasicBrush}"
							Padding="5,2,5,2" CornerRadius="0" Background="White" Margin="0,0,0,2">
						<ContentPresenter />
					</Border>
					<ControlTemplate.Triggers>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsMouseOver" Value="true" />
								<Condition Property="IsSelected" Value="false" />
							</MultiTrigger.Conditions>
							<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource BasicBrush}" />
							<Setter TargetName="Border" Property="Background" Value="{StaticResource BasicBrush}" />
						</MultiTrigger>
						<Trigger Property="IsSelected" Value="true">
							<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource AccentBrush}" />
							<Setter TargetName="Border" Property="Background" Value="{StaticResource AccentBrush}" />
							<Setter TargetName="Border" Property="TextElement.Foreground" Value="{StaticResource MainBrush}" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<!--/Стили списка ListBox-->

	<!--/Стили общего названачения-->

	<Style TargetType="{x:Type GridSplitter}">
		<Setter Property="Background" Value="Transparent" />
	</Style>

	<Style TargetType="{x:Type UserControl}">
		<Setter Property="FontSize" Value="11"/>
		<Setter Property="TextElement.FontSize" Value="11"/>
		<Setter Property="TextOptions.TextRenderingMode" Value="Aliased"/>
		<Setter Property="SnapsToDevicePixels" Value="True"/>
		<Setter Property="Background" Value="Transparent"/>
	</Style>

	<Style x:Key="DraggedAdornerTabPosition" TargetType="{x:Type Border}">
		<Setter Property="Background" Value="#82bffd"></Setter>
		<Setter Property="BorderBrush" Value="#cbcbcb"></Setter>
		<Setter Property="BorderThickness" Value="5"></Setter>
		<Setter Property="Opacity" Value="0.7"></Setter>
	</Style>

	<Style x:Key="UserControlForm" TargetType="{x:Type UserControl}" BasedOn="{StaticResource {x:Type UserControl}}">
		<Setter Property="Background" Value="{DynamicResource MainBrush}" />
	</Style>

	<Style x:Key="ScrollViewerForm" TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource {x:Type ScrollViewer}}">
		<Setter Property="CanContentScroll" Value="True" />
		<Setter Property="VerticalScrollBarVisibility" Value="Auto" />
		<Setter Property="HorizontalScrollBarVisibility" Value="Disabled" />
		<Setter Property="Padding" Value="10,0,10,0" />
		<Setter Property="Background" Value="Transparent" />
	</Style>

	<Style x:Key="StackPanelForm" TargetType="{x:Type StackPanel}">
	</Style>

	<Style x:Key="GridForm" TargetType="{x:Type Grid}">
		<Setter Property="Margin" Value="10,0,10,10" />
	</Style>

	<Style x:Key="ExpanderFormGroup" TargetType="{x:Type Expander}" BasedOn="{StaticResource {x:Type Expander}}">
		<Setter Property="VerticalAlignment" Value="Top" />
		<Setter Property="Margin" Value="0,10,0,0" />
	</Style>

	<Style x:Key="TextBlockFormField" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
		<!--<Setter Property="TextWrapping" Value="WrapWithOverflow" />-->
		<Setter Property="TextTrimming" Value="WordEllipsis" />
		<Setter Property="VerticalAlignment" Value="Top" />
		<Setter Property="HorizontalAlignment" Value="Left" />
		<Setter Property="Margin" Value="0,5,0,0" />
		<Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self}, Path=Text}" />
	</Style>

	<Style x:Key="CheckBoxFormField" TargetType="{x:Type CheckBox}" BasedOn="{StaticResource {x:Type CheckBox}}">
		<Setter Property="VerticalAlignment" Value="Top" />
		<Setter Property="HorizontalAlignment" Value="Left" />
		<Setter Property="Margin" Value="0,3,0,0" />
	</Style>

	<Style x:Key="TextBlockFormFieldDescription" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
		<Setter Property="TextWrapping" Value="WrapWithOverflow" />
		<Setter Property="VerticalAlignment" Value="Top" />
		<Setter Property="HorizontalAlignment" Value="Left" />
		<Setter Property="Margin" Value="0,4,0,0" />
		<Setter Property="Foreground" Value="Gray" />
	</Style>

	<Style x:Key="CloseButton" TargetType="{x:Type Button}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<Border Name="BorderClose" HorizontalAlignment="Right" VerticalAlignment="Top" BorderBrush="Transparent"
							BorderThickness="0" Padding="2">
						<Path Name="xxx" Data="F1M54.0573,47.8776L38.1771,31.9974 54.0547,16.1198C55.7604,14.4141 55.7604,11.6511 54.0573,9.94531 52.3516,8.23962 49.5859,8.23962 47.8802,9.94531L32.0026,25.8229 16.1224,9.94531C14.4167,8.23962 11.6511,8.23962 9.94794,9.94531 8.24219,11.6511 8.24219,14.4141 9.94794,16.1198L25.8255,32 9.94794,47.8776C8.24219,49.5834 8.24219,52.3477 9.94794,54.0534 11.6511,55.7572 14.4167,55.7585 16.1224,54.0534L32.0026,38.1745 47.8802,54.0534C49.5859,55.7585 52.3516,55.7572 54.0573,54.0534 55.7604,52.3477 55.763,49.5834 54.0573,47.8776z"
							  Fill="#d0e6f5" Height="10" Stretch="Fill" Width="10" />
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="BorderClose" Property="Background" Value="#52b0ef" />
							<Setter TargetName="xxx" Property="Fill" Value="#ffffff" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="xxx" Property="Fill" Value="#ffffff" />
							<Setter TargetName="BorderClose" Property="Background" Value="#0e6198" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="DataTextLinkButton" TargetType="{x:Type ITSControls:LinkButton}">
		<Setter Property="Foreground" Value="{DynamicResource ForegroundBrush}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ITSControls:LinkButton}">
					<TextBlock Name="Link" Text="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}"
							   Cursor="Hand" TextDecorations="Underline" Padding="{TemplateBinding Padding}" />
					<ControlTemplate.Triggers>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="Link" Property="Foreground" Value="{StaticResource DisabledForegroundBrush}" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="Link" Property="Foreground" Value="{DynamicResource AccentBrush}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="DataTextLinkOrangeButton" TargetType="{x:Type ITSControls:LinkButton}">
		<Setter Property="Foreground" Value="{DynamicResource ForegroundBrush}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ITSControls:LinkButton}">
					<TextBlock Name="Link" Text="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}"
							   Cursor="Hand" TextDecorations="Underline" Padding="{TemplateBinding Padding}" />
					<ControlTemplate.Triggers>
						<Trigger Property="IsEnabled" Value="False">
							<Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter Property="Foreground" Value="{DynamicResource OrangeBrush}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="DataTextLinkNoForegroundButton" TargetType="{x:Type ITSControls:LinkButton}">
		<Setter Property="OverridesDefaultStyle" Value="True" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ITSControls:LinkButton}">
					<TextBlock Name="Link" Text="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}"
							   Cursor="Hand" TextDecorations="Underline" Padding="{TemplateBinding Padding}" />
					<ControlTemplate.Triggers>
						<Trigger Property="IsEnabled" Value="False">
							<Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="{x:Type MenuItem}">
		<Setter Property="Icon" Value="{Binding Path=IcoUri}" />
		<Setter Property="Header" Value="{Binding Path=Name}" />
		<Setter Property="ItemsSource" Value="{Binding Path=Items}" />
		<Setter Property="Command" Value="{Binding Path=Command}" />
		<Setter Property="CommandParameter" Value="{Binding Path=CommandParameter}" />
	</Style>

	<Style x:Key="SingleToolBar" TargetType="{x:Type ToolBar}" BasedOn="{StaticResource {x:Type ToolBar}}">
		<!--<Setter Property="Background" Value="Transparent" />
		<Setter Property="BorderBrush" Value="Transparent" />-->
		<Setter Property="BorderThickness" Value="0" />
		<Setter Property="Padding" Value="0" />
	</Style>

	<Style TargetType="{x:Type StatusBarItem}">
		<Setter Property="Width" Value="{Binding Path=Width, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" />
		<Style.Triggers>
			<DataTrigger Binding="{Binding Path=Width, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" Value="0">
				<Setter Property="Width" Value="Auto" />
			</DataTrigger>
			<DataTrigger Binding="{Binding Path=Aligment, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" Value="Left">
				<Setter Property="DockPanel.Dock" Value="Left" />
				<Setter Property="Margin" Value="0,0,10,0" />
			</DataTrigger>
			<DataTrigger Binding="{Binding Path=Aligment, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" Value="Right">
				<Setter Property="DockPanel.Dock" Value="Right" />
				<Setter Property="Margin" Value="10,0,0,0" />
			</DataTrigger>
			<DataTrigger Binding="{Binding Path=Visible, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" Value="True">
				<Setter Property="Visibility" Value="Visible" />
			</DataTrigger>
			<DataTrigger Binding="{Binding Path=Visible, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" Value="False">
				<Setter Property="Visibility" Value="Collapsed" />
			</DataTrigger>
		</Style.Triggers>
	</Style>

	<Style x:Key="ProgressBarIndeterminate" TargetType="ProgressBar">
		<Setter Property="Background" Value="#FF606060"/>
		<Setter Property="IsTabStop" Value="False"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ProgressBar">
					<Grid x:Name="Root">
						<sw:VisualStateManager.VisualStateGroups>
							<sw:VisualStateGroup x:Name="CommonStates">
								<sw:VisualState x:Name="Determinate"/>
								<sw:VisualState x:Name="Indeterminate">
									<Storyboard Duration="00:00:01" RepeatBehavior="Forever">
										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" Storyboard.TargetName="Circles">
											<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="0:0:01" Value="360"/>
										</DoubleAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="IndeterminateRoot">
											<DiscreteObjectKeyFrame KeyTime="0">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</sw:VisualState>
							</sw:VisualStateGroup>
						</sw:VisualStateManager.VisualStateGroups>
						<Grid x:Name="IndeterminateRoot" Visibility="Collapsed">
							<Path x:Name="Circles" Fill="{TemplateBinding Background}" Data="F1 M7.5690002,12.124801 C8.4020081,12.124801 9.0769958,12.799849 9.0769958,13.631897 C9.0769958,14.464952 8.4020081,15.139 7.5690002,15.139 C6.7369995,15.139 6.0620117,14.464952 6.0620117,13.631897 C6.0620117,12.799849 6.7369995,12.124801 7.5690002,12.124801 z M7.5690002,0 C7.9259949,0 8.2149963,0.28902054 8.2149963,0.6460464 C8.2149963,1.0030645 7.9259949,1.2920852 7.5690002,1.2920852 C7.2120056,1.2920852 6.9230042,1.0030645 6.9230042,0.6460464 C6.9230042,0.28902054 7.2120056,0 7.5690002,0 z M2.1530151,7.1384716 C2.1530151,7.7335124 1.67099,8.2155466 1.0759888,8.2155466 C0.48199463,8.2155466 0,7.7335124 0,7.1384716 C0,6.5444307 0.48199463,6.0623965 1.0759888,6.0623965 C1.67099,6.0623965 2.1530151,6.5444307 2.1530151,7.1384716 z M16,7.1384716 C16,8.2095413 15.131989,9.0766029 14.062012,9.0766029 C12.992004,9.0766029 12.123993,8.2095413 12.123993,7.1384716 C12.123993,6.0684013 12.992004,5.2013474 14.062012,5.2013474 C15.131989,5.2013474 16,6.0684013 16,7.1384716 z M3.8919983,10.816716 C4.3959961,11.321747 4.3959961,12.139801 3.8919983,12.643832 C3.3869934,13.14887 2.5690002,13.14887 2.0650024,12.643832 C1.5599976,12.139801 1.5599976,11.321747 2.0650024,10.816716 C2.5690002,10.311678 3.3869934,10.311678 3.8919983,10.816716 z M13.683014,1.0250692 C14.523987,1.8661205 14.523987,3.2292171 13.683014,4.0702686 C12.84201,4.9113274 11.479004,4.9113274 10.638,4.0702686 C9.7969971,3.2292171 9.7969971,1.8661205 10.638,1.0250692 C11.479004,0.18401025 12.84201,0.18401025 13.683014,1.0250692 z M3.5870056,3.1562066 C3.2510071,3.4932344 2.7059937,3.4932344 2.368988,3.1562066 C2.0329895,2.8201859 2.0329895,2.2751517 2.368988,1.9381315 C2.7059937,1.6021031 3.2510071,1.6021031 3.5870056,1.9381315 C3.9240112,2.2751517 3.9240112,2.8201859 3.5870056,3.1562066 z M13.377991,12.948853 C12.705994,13.620902 11.61499,13.620902 10.941986,12.948853 C10.269989,12.275812 10.269989,11.184736 10.941986,10.511696 C11.61499,9.8396463 12.705994,9.8396463 13.377991,10.511696 C14.050995,11.184736 14.050995,12.275812 13.377991,12.948853 z"
								  HorizontalAlignment="Center" Height="15.139" VerticalAlignment="Center" Width="16" RenderTransformOrigin="0.5,0.5">
								<Path.RenderTransform>
									<RotateTransform />
								</Path.RenderTransform>
							</Path>
						</Grid>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="HeaderInfoTextBlock" TargetType="{x:Type TextBlock}">
		<Setter Property="TextTrimming" Value="WordEllipsis" />
		<Setter Property="FontSize" Value="16" />
		<Setter Property="Margin" Value="0,0,0,10" />
	</Style>

	<Style x:Key="MetroTabItem" TargetType="{x:Type TabItem}" BasedOn="{StaticResource {x:Type TabItem}}">
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="Foreground" Value="{DynamicResource ForegroundBrush}" />
		<Setter Property="Padding" Value="7,2,7,2" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type TabItem}">
					<Border Name="BorderHeader" BorderThickness="0" Background="Transparent" Padding="{TemplateBinding Padding}">
						<ContentPresenter Name="HeaderText" Content="{TemplateBinding Header}"
										  ContentTemplate="{TemplateBinding HeaderTemplate}" TextElement.FontSize="13"/>
					</Border>
					<ControlTemplate.Triggers>
						<DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=TabControl, AncestorLevel=1}, Path=TabStripPlacement, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" Value="Left">
							<Setter TargetName="HeaderText" Property="VerticalAlignment" Value="Center" />
							<Setter TargetName="HeaderText" Property="HorizontalAlignment" Value="Left" />
						</DataTrigger>
						<DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=TabControl, AncestorLevel=1}, Path=TabStripPlacement, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" Value="Top">
							<Setter TargetName="HeaderText" Property="VerticalAlignment" Value="Center" />
							<Setter TargetName="HeaderText" Property="HorizontalAlignment" Value="Center" />
							<Setter Property="MinWidth" Value="50" />
						</DataTrigger>
						<DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=TabControl, AncestorLevel=1}, Path=TabStripPlacement, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" Value="Right">
							<Setter TargetName="HeaderText" Property="VerticalAlignment" Value="Center" />
							<Setter TargetName="HeaderText" Property="HorizontalAlignment" Value="Left" />
						</DataTrigger>
						<DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=TabControl, AncestorLevel=1}, Path=TabStripPlacement, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" Value="Bottom">
							<Setter TargetName="HeaderText" Property="VerticalAlignment" Value="Center" />
							<Setter TargetName="HeaderText" Property="HorizontalAlignment" Value="Center" />
							<Setter Property="MinWidth" Value="50" />
						</DataTrigger>
						<Trigger Property="IsSelected" Value="True">
							<Setter TargetName="HeaderText" Property="TextElement.Foreground" Value="{StaticResource AccentBrush}" />
						</Trigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsSelected" Value="False" />
								<Condition Property="IsMouseOver" Value="True" />
							</MultiTrigger.Conditions>
							<Setter TargetName="HeaderText" Property="TextElement.Foreground" Value="{StaticResource AccentBrush}" />
						</MultiTrigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="MetroTab" TargetType="{x:Type TabControl}" BasedOn="{StaticResource {x:Type TabControl}}">
		<Setter Property="ItemContainerStyle" Value="{StaticResource MetroTabItem}" />
	</Style>

	<Style x:Key="ButtonMetro" TargetType="{x:Type Button}">
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="OverridesDefaultStyle" Value="True" />
		<Setter Property="FontSize" Value="{Binding Source={x:Static Themes:StyleManager.FontSize}}" />
		<Setter Property="TextElement.FontSize" Value="{Binding Source={x:Static Themes:StyleManager.FontSize}}"/>
		<Setter Property="MinHeight" Value="{x:Static Themes:StyleManager.FormControlHeight}" />
		<Setter Property="MinWidth" Value="{x:Static Themes:StyleManager.FormControlHeight}" />
		<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Padding" Value="2" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<Border Name="BorderClose" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"
							Background="{TemplateBinding Background}">
						<ContentPresenter Margin="{TemplateBinding Padding}" VerticalAlignment="Center" HorizontalAlignment="Center" />
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}" />
							<Setter Property="Background" Value="{DynamicResource AccentBrush}" />
							<Setter Property="Foreground" Value="{DynamicResource MainBrush}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>
